<?php

namespace app\admin\controller;

use app\admin\model\User;
use think\Controller;

class Admin extends Controller
{
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function index()
    {
        $user = new User();
        return json($user->getUserRole());
    }

}
